﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SocketServer.ServerBase;
using SocketServer;
using IUploading;

namespace SocketServer.ClientCommands
{
    public class ExitApp : ClientRequestPackCommand<TransferDataPackge>
    {
        public string OutParams = "";

        public ClientRequestPackSession Session;

        public TransferServer Server = null;

        public override void ExecuteCommand(ClientRequestPackSession session, TransferDataPackge pack)
        {
            TransferServer server = session.AppServer as TransferServer;
            server.OnNewSessionRequestReceived(session, pack);
            server.OnAppExited(pack.InParams);
        }
    }
}
